package com.ruoyi.ruoyiserver.timer;


import com.ruoyi.ruoyiserver.service.IPeBackupService;
import com.ruoyi.ruoyiserver.utils.Utils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Slf4j
@Component
public class BackupTimer {

    @Resource
    private IPeBackupService backupService;

    public void beginBackupDatabases() {
        backupService.beginBackSql("定时备份");
        log.info("{}开始执行数据库备份", Utils.getCurrentTime());
    }

}
